<div id="print_options">
  <form action="/print{{ request.path }}" method="post">
    {% csrf_token %}
    {% for key, value in parameters.iteritems %}
    {% if value %}
      <input type="hidden" name="{{ key }}" value="{{ value }}" />
    {% endif %}
    {% endfor %}
    <input type="submit" value="Natisni" />
  </form>&nbsp;
  <form action="/print/pdf{{ request.path }}" method="post">
    {% csrf_token %}
    {% for key, value in parameters.iteritems %}
    {% if value %}
      <input type="hidden" name="{{ key }}" value="{{ value }}" />
    {% endif %}
    {% endfor %}
    <input type="submit" value="Natisni v PDF" />
  </form>
</div>